<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
 <%@ include file="/common/query.jsp"%>
<%@ include file="/common/det.jsp"%>
<script>
    $(function () {
        var height = ($(window).height()/2-$('.blue-title').height());
        $('#all').append('<iframe src="${base}/sales/goals"  width="100%" height="'+(height)+'px"  frameborder="0"></iframe>');
        $('#seeSalesGoalsCampus').height(height);
    });
    function seeSalesGoalsCampus(row) {
        $('#seeSalesGoalsCampus').html('<iframe src="${base}/sales/goals/campus?salesGoalsId='+row.id+'&date='+row.date+'"  width="100%" height="'+($(window).height()/2-$('.blue-title').height())+'px"  frameborder="0"></iframe>');
    }
    function seeSalesGoalsCampusUser(row,date) {
        $('#seeSalesGoalsCampusUser').html('<iframe src="${base}/sales/goals/campus/user?salesGoalsCampusId='+row.id+'&date='+date+'&campus='+row['formatter-adminSystemOrganId']+'"  width="100%" height="'+($(window).height()/2-$('.blue-title').height())+'px"  frameborder="0"></iframe>');
    }
    function seeSalesGoalsCampusUserDet(row) {
        $('#seeSalesGoalsCampusUserDet').html('<iframe src="${base}/sales/goals/campus/user/det?salesGoalsCampusUserId='+row.id+'&name='+row['formatter-adminSystemUserId']+'"  width="100%" height="'+($(window).height()/2-$('.blue-title').height())+'px"  frameborder="0"></iframe>');
    }
</script>
</head>
<body style="width: 100%;height: 100%">
<div style="width:100%;height:50%;">
    <div style="width: 50%;height:100%;float: left;" id="all">
        <div class="item-head blue-title" ><span class="hsize">销售目标</span></div>
    </div>
    <div style="width: 50%;height: 100%;float: left;">
        <div class="item-head blue-title" ><span class="hsize">校区目标</span></div>
        <div id="seeSalesGoalsCampus" ></div>
    </div>
</div>
<div style="width:100%;height:50%;">
    <div style="width: 50%;height:100%;float: left;">
        <div class="item-head blue-title" ><span class="hsize">销售顾问目标</span></div>
        <div id="seeSalesGoalsCampusUser" ></div>
    </div>
    <div style="width: 50%;height: 100%;float: left;">
        <div class="item-head blue-title" ><span class="hsize">个人销售指标</span></div>
        <div id="seeSalesGoalsCampusUserDet" ></div>
    </div>
</div>
</body>
</html>